import request from '../Utils/request'

export function GetGoods(params){
    return request.get(`/Goods`,{params:params})
}
//修改状态
export function PutStatus(data){
    return request.put(`/Goods/status`,data)
}
//添加商品
export function addGoods(data){
    return request.post(`/Goods`,data)
}
//修改商品信息
export function PutGoods(id,data){
    return request.put(`/Goods/${id}`,data)
}
//删除商品
export function deleteId(id){
    return request.delete(`/Goods/${id}`)
}